package com.zhentao.util;


import com.zhentao.model.common.app.pojo.AppUser;

public class AppThreadLocalUtil {

    private final static ThreadLocal<AppUser> WM_USER_THREAD_LOCAL = new ThreadLocal<>();

    public static void setUser(AppUser user){
        WM_USER_THREAD_LOCAL.set(user);
    }

    public static AppUser getUser(){
        return WM_USER_THREAD_LOCAL.get();
    }

    public static void remove(){
        WM_USER_THREAD_LOCAL.remove();
    }

}
